package com.marklogic.ps.servicetester.domain;

public class ServerConnectionInfo implements Comparable<ServerConnectionInfo> {

	private String baseUrl;
	private String username;
	private String password;
	private int id;

	public ServerConnectionInfo(String baseUrl, String username,
			String password, int id) {
		super();
		this.baseUrl = baseUrl;
		this.username = username;
		this.password = password;
		this.id = id;
	}

	public ServerConnectionInfo(String baseUrl, String username, String password) {
		super();
		this.baseUrl = baseUrl;
		this.username = username;
		this.password = password;
	}

	public String getBaseUrl() {
		return baseUrl;
	}

	public void setBaseUrl(String baseUrl) {
		this.baseUrl = baseUrl;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return baseUrl;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	//@Override
	public int compareTo(ServerConnectionInfo sci) {
		Integer i = sci.getId();
		Integer i2 = this.id;
		return i2.compareTo(i);
	}
	

}
